#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.service.convert;

import com.google.common.base.Converter;
import ${package}.pojo.Demo;
import ${package}.pojo.vo.DemoInputVo;
import org.springframework.beans.BeanUtils;
import org.springframework.lang.NonNull;

/**
 * @author qingchang.tang
 * @date 2020/7/24 18:24
 */
public class DemoInputVoConverter extends Converter<DemoInputVo, Demo> {

    @Override
    protected Demo doForward(@NonNull DemoInputVo demoInputVo) {
        Demo demo = new Demo();
        BeanUtils.copyProperties(demoInputVo, demo);
        return demo;
    }

    @Override
    protected DemoInputVo doBackward(@NonNull Demo demo) {
        throw new UnsupportedOperationException("do backward unsupported");
    }
}
